
import request from '@/utils/request';

export function driverReview(data = {}) {
    return request({
        ur: "/driverReview",
        method: 'post',
        data
    })
}

//司机列表
export function driverUserList(params = {}) {
    return request({
        url: '/driverUserList',
        method: 'get',
        params
    })
}

/**
 * 删除 司机列表的司机
 * @param {id} data 自增用户id
 * @returns 
 */
export function deleteDriverUser(data = {}) {
    return request({
        url: "/deleteDriverUser",
        method: 'post',
        data
    })
}

/**
 * 删除 司机审核的司机
 * @param {id} data 自增用户id
 * @returns 
 */
export function deleteDriver(data = {}) {
    return request({
        url: "/deleteDriver",
        method: 'post',
        data
    })
}